<template>
  <div>
    <!-- 面包屑 -->
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>菜单管理</el-breadcrumb-item>
    </el-breadcrumb>
    <!-- 添加按钮 -->
    <div>
      <el-button class="btn" type="primary" plain size="small">添加</el-button>
    </div>
    <!-- 列表渲染 -->
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="date" label="日期" width="180"> </el-table-column>
      <el-table-column prop="name" label="姓名" width="180"> </el-table-column>
      <el-table-column prop="address" label="地址"> </el-table-column>
      <el-table-column label="操作">
        <div>
          <el-button circle type="primary" icon='el-icon-edit' size="mini"></el-button>
          <el-button circle type="danger" icon='el-icon-delete
' size="mini"></el-button>
        </div>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
    data(){
        return{
            tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
      ],
        }
    }
};
</script>
<style scoped>
.btn{
    margin: 10px;
}
</style>